//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Cloud Nothings','Le Poisson Rouge - NY','New York, NY','Thursday','5/9/2024','8:30 PM','6304346','Cloud-Nothings-5-9-2024'],['Pachyman & Combo Chimbita','Le Poisson Rouge - NY','New York, NY','Friday','5/10/2024','6:00 PM','6245916','Pachyman---Combo-Chimbita-5-10-2024'],['Soen','Le Poisson Rouge - NY','New York, NY','Saturday','5/11/2024','6:00 PM','5898004','Soen-5-11-2024'],['Sasha Velour','Le Poisson Rouge - NY','New York, NY','Sunday','5/19/2024','8:00 PM','6217362','Sasha-Velour-5-19-2024'],['Sasha Velour','Le Poisson Rouge - NY','New York, NY','Monday','5/20/2024','8:00 PM','6217363','Sasha-Velour-5-20-2024'],['Tony Ann','Le Poisson Rouge - NY','New York, NY','Thursday','5/23/2024','6:00 PM','6243767','Tony-Ann-5-23-2024'],['Tony Ann','Le Poisson Rouge - NY','New York, NY','Thursday','5/23/2024','9:45 PM','6264810','Tony-Ann-5-23-2024'],['The Living Tombstone','Le Poisson Rouge - NY','New York, NY','Friday','6/14/2024','7:30 PM','6371725','The-Living-Tombstone-6-14-2024'],['The Early November','Le Poisson Rouge - NY','New York, NY','Saturday','6/22/2024','7:00 PM','6319564','The-Early-November-6-22-2024'],['Sasha Velour','Le Poisson Rouge - NY','New York, NY','Sunday','6/23/2024','8:00 PM','6217364','Sasha-Velour-6-23-2024'],['Sasha Velour','Le Poisson Rouge - NY','New York, NY','Monday','6/24/2024','8:00 PM','6217365','Sasha-Velour-6-24-2024'],['Sign Crushes Motorist','Le Poisson Rouge - NY','New York, NY','Tuesday','7/2/2024','8:00 PM','6296346','Sign-Crushes-Motorist-7-2-2024'],['The Clientele','Le Poisson Rouge - NY','New York, NY','Tuesday','7/30/2024','7:00 PM','6274151','The-Clientele-7-30-2024'],['Joseph - The Band','Le Poisson Rouge - NY','New York, NY','Wednesday','9/11/2024','7:00 PM','6418452','Joseph---The-Band-9-11-2024'],['Faun','Le Poisson Rouge - NY','New York, NY','Friday','9/27/2024','7:30 PM','6331284','Faun-9-27-2024'],['Eve 6 & Alien Ant Farm','Le Poisson Rouge - NY','New York, NY','Tuesday','5/20/2070','TBD','4382808','Eve-6---Alien-Ant-Farm-5-20-2070']],'Le Poisson Rouge','http://www.ticketnetwork.com/ticket/Le-Poisson-Rouge-events.aspx');